package person.csx.meeting.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import person.csx.meeting.model.Department;
import person.csx.meeting.service.DepartmentService;
import person.csx.meeting.mapper.DepartmentMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> list() {
        return departmentMapper.selectList(null);
    }

    public List<Department> getAllDeps() {
        return departmentMapper.getAllDeps();
    }
}




